import server from "../utils/request.js";

export function getUser(){
    return server({
        url:'/user/userId',
        method:'GET'
    })
}
export function setUser(data){
    return server({
        url:'user/userId',
        method:'PUT',
        data
    })
}
export function exit(){
    return server({
        url:'user/exit',
        method:'GET'
    })
}
export function updateAvatar(data){
    return server({
        url:'user/avatar',
        method:'POST',
        data
    })
}
export function cardVerify(data){
    return server({
        url:'/user/cardVerify',
        method:'POST',
        data
    })
}
export function sendSmsCode(data){
    return server({
        url:'/sendSmsCode',
        method:'POST',
        data
    })
}